package com.qhit.service.impl;

import com.qhit.dao.UserMappper;
import com.qhit.pojo.User;
import com.qhit.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMappper userMapper;
    @Override
    public List<User> getList(HashMap hashMap) {
        return userMapper.getList(hashMap);

    }

    @Override
    public List<User> getList2() {
        return userMapper.getList2();
    }

    @Override
    public Long getListCount(HashMap hashMap) {
        return userMapper.getListCount(hashMap);
    }

    @Override
    public int add(User User) {
        return userMapper.add(User);
    }

    @Override
    public User getUserById(Integer id) {
        return userMapper.getUserById(id);
    }

    @Override
    public int edit(User User) {
        return userMapper.edit(User);
    }

    @Override
    public int delete(Integer id) {
        return userMapper.delete(id);
    }

    @Override
    public User getUserByUserName(String username) {
        return userMapper.getUserByUserName(username);
    }


}
